package com.biostime.dingdingbox.modules.db.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.biostime.dingdingbox.common.service.CrudService;
import com.biostime.dingdingbox.modules.db.dao.CommentDao;
import com.biostime.dingdingbox.modules.db.dto.CommentDto;
import com.biostime.dingdingbox.modules.db.entity.Comment;

/**
 * 评论Service
 * @author chenweicheng
 * @version 2016-06-29
 */
@Service
@Transactional
public class CommentService extends CrudService<CommentDao, Comment> {
	public int apiGetCommentCount(String strategyId){
		return dao.apiGetCommentCount(strategyId);
	}
	
	public List<CommentDto>  apiGetCommentList(String type , String objectId){
		return dao.apiGetCommentList(type, objectId);
	}
	
	public int audit(Comment comment){
		return dao.audit(comment);
	}
	
}
